<?php
/* @var $this ReleaseController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'user',
);

?>

<!-- Page Head -->
			<h2><?php echo CHtml::link("用户信息操作",$this->createUrl("user/index"));?></h2>
					<?php echo $this->renderPartial("topMenu");?>
			
			<div class="content-box">
			<!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>用户信息列表</h3>
				
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->				
				<div class="content-box-content" >
<?php
Yii::app()->clientScript->registerScript('search', "
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('userinfo-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Userinfos</h1>
<div class="search-form">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'userinfo-grid',
	'dataProvider'=>$model->search(),
	'cssFile'=>Yii::app()->theme->baseUrl."/resources/css/style.css",
	'columns'=>array(
		'UserName',
		'UserNickName',
		'UserLevel',
		'UserCash',
		'UserPhoto',
		'checkFlag',
		'UserSex',
		array(
			'name'=>'Created',
			'value'=>'date("Y-m-d H:i",$data->Created)',
		),
		/*
		'UserState',
		'UserLoginPosX',
		'UserLoginPosY',
		'UserEmail',
		'UserTel',
		'UserAge',
		'UserBirth',
		'UserSign',

		'UserLastLoginIp',
		'UserLastLoginTime',
		'UserIsOnline',
		'checkFlag',
		'searchFlag',

		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
</div> <!-- End .content-box-content -->
			</div> <!-- End .content-box -->
			<div class="clear"></div>
